/**
 * Tab模块
 */
Ext.define('BenBen.common.BaseTabModule',{
    extend : 'Ext.ux.desktop.Module',
    border : false,
    init : function(){
    	var me = this;
        this.launcher = {
            text: me.title,
            iconCls:'icon-grid'
        };
    },
    createWindow : function() {
    	var me = this;
        var desktop = this.app.getDesktop();
        
        var win = desktop.getWindow(me.id);

        if (!win) {
        	var data = getChildModules(me.id);
        	
        	win = desktop.createWindow({
        		id : me.id,
				title : me.title,
				width : 740,
				height : 600,
				iconCls : 'tabs',
				animCollapse : false,
				border : false,
				constrainHeader : true,
				layout : 'fit',
				items : [ {
					xtype : 'tabpanel',
					activeTab : 0,
					items : data
				} ]
            });
        }


        return win;
	}
});
